import Vue from 'vue';
import App from './app.vue';
import router from './router';

import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);

import axios  from 'axios';
Vue.prototype.$http = axios;
axios.defaults.baseURL = '/api';
// axios.defaults.baseURL = 'http://rbook-api.topwhere.cn/';
// axios.defaults.headers.common['Authorization'] = AUTH_TOKEN;
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';

Vue.config.productionTip = false;

new Vue({
  router,
  render: (h) => h(App),
}).$mount('#app');
